package com.orangelife.service.propFeeMeterRecord.impl;

import java.util.List;

import com.orangelife.exception.AppBizException;
import com.orangelife.service.propFeeMeterRecord.IPropFeeMeterRecordService;
import com.orangelife.service.propFeeMeterRecord.model.PropFeeMeterRecordDto;

public class HandleRecordThread extends Thread implements Runnable {

	private String threadName;
	private List<PropFeeMeterRecordDto> data;
	private int start;
	private int end;

	private IPropFeeMeterRecordService propFeeMeterRecordService;

	public HandleRecordThread(String threadName,
			List<PropFeeMeterRecordDto> data,
			IPropFeeMeterRecordService propFeeMeterRecordService) {
		this.threadName = threadName;
		this.data = data;
		this.propFeeMeterRecordService = propFeeMeterRecordService;
	}
	public void run() {
		try {
			propFeeMeterRecordService.addPropFeeMeterRecord(data);
		} catch (AppBizException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
